package com.example.jishi.demos.web.mapper;

import com.example.jishi.demos.web.entity.Employee;
import org.apache.ibatis.annotations.*;

import java.util.List; 
@Mapper
public interface EmployeeMapper {
    List<Employee> getAllEmployees(@Param("name") String name);

    // 根据ID查询工种类型
    Employee getEmployeeById(@Param("id") int id);

    // 新增工种类型
    void insertEmployee(Employee employee);

    // 更新工种类型
    void updateEmployee(Employee employee);

    // 删除工种类型
    void deleteEmployee(int id);
}